{include file='admin/header.html'}
<span class="td4"> 
    <div class="botline"></div>
       <div class="form">
<form method="post" action="{geturl route='edittender' id=$fp->tender->getId()}" id="registration-form">

        <div class="error"{if !$fp->hasError()} style="display: none"{/if}>
            Одно или несколько полей заполнены неверно. Проверьте, пожалуйста, 
            поля с ошибками и отправьте форму ещё раз.
        </div>

        <div class="row" id="form_username_container">
              <span class="td4" style="width:200px;padding-top: 5px;"><label for="form_name">Название:</label></span>
           <span class="td4" style="padding: 5px;">   <input type="text" id="form_name"
                   name="name" value="{$fp->name}" />
            {include file='lib/error.tpl' error=$fp->getError('name')}</span>
        </div>
         <div class="botline"></div>
        <div class="row" id="form_first_name_container">
             <span class="td4" style="width:200px;padding-top: 5px;"> <label for="form_about">Описание:</label></span>
           <span class="td4" style="padding: 5px;">   
               <textarea id="form_about" name="about" cols="60" rows="15">{$fp->about|escape}</textarea>
            {include file='lib/error.tpl' error=$fp->getError('about')}</span>
        </div>
 <div class="botline"></div>
        <div class="row" id="form_password_again_container">
              <span class="td4" style="width:200px;padding-top: 5px;"><label for="form_project">Выберите проект:</label></span>
          <span class="td4" style="padding: 5px;">    <select name="projects" >
            <option value='0' > Выбрать проект</option>
            {foreach from=$projects item='project'}
                {if $fp->project == $project->getId()}
                    <option value='{$project->getId()}' selected="selected"> {$project->name|escape}</option>
                {else}
                    <option value='{$project->getId()}'> {$project->name|escape}</option>
                {/if}
            {/foreach}
             </select>
            {include file='lib/error.tpl' error=$fp->getError('project')}</span>
        </div>
        <div class="botline"></div> 
        <div class="row" id="form_password_again_container">
             <span class="td4" style="width:200px;padding-top: 5px;"> <label for="form_email">Выберите категории:</label></span>
          <span class="td4" style="padding: 5px;">    <select name="cats">
            <option value='0' > Выбрать категорию</option>
            {foreach from=$cats item='cat'}
                {if $fp->cats == $cat->getId()}
                    <option value='{$cat->getId()}' selected="selected"> {$cat->name|escape}</option>
                {else}
                    <option value='{$cat->getId()}'> {$cat->name|escape}</option>
                {/if}
            {/foreach}
            </select>
            {include file='lib/error.tpl' error=$fp->getError('category')}</span>
        </div>
         <div class="botline"></div>
        <div class="row" id="form_email_container">
             <span class="td4" style="width:200px;padding-top: 5px;"> <label for="form_start_date">Дата начала:</label></span>
          <span class="td4" style="padding: 5px;">    <input type="text" id="form_start_date"
                   name="start_date" value="{$fp->start_date|escape}" />
            {include file='lib/error.tpl' error=$fp->getError('start_date')}
        </div>
         <div class="botline"></div>
        <div class="row" id="form_email_container">
             <span class="td4" style="width:200px;padding-top: 5px;"> <label for="form_end_date">Дата окончания:</label></span>
           <span class="td4" style="padding: 5px;">   <input type="text" id="form_end_date"
                   name="end_date" value="{$fp->end_date|escape}" />
            {include file='lib/error.tpl' error=$fp->getError('end_date')}</span>
        </div>
         <div class="botline"></div>
        <div class="row" id="form_manager_container">
              <span class="td4" style="width:200px;padding-top: 5px;"><label for="form_manager">Отвественный:</label></span>
            <span class="td4" style="padding: 5px;">  <input type="text" id="form_manager"
                   name="manager" value="{$fp->manager|escape}" />
            {include file='lib/error.tpl' error=$fp->getError('manager')}</span>
        </div>
         <div class="botline"></div>
          <div class="qq-upload-button" id="upload" style="position: relative; overflow: hidden; direction: ltr;">Загрузить файл
            <input type="file" name="file" style="position: absolute; right: 0px; top: 0px; font-family: Arial; font-size: 118px; margin: 0px; padding: 0px; cursor: pointer; opacity: 0;">
        </div>
        <span id="status" ></span>
        <ul id="files" class="qq-upload-list">
           {foreach from=$fp->files item=val}
           <li class="qq-upload-success"><label>{$val->name}</label> <div id="{$val->filename}" class="click-del-image grad-btn">x</div></li>
           {/foreach}
        </ul>

        <div class="submit">
            <input type="submit" value="Сохранить" />
        </div>

</form>
    </div>
</span> 

{include file='admin/footer.html'  menu="tenders"}